package com.chixing.day19_thread.work;

import java.time.LocalDate;


public class Product {
//    商品id,名称，价格，产地，生产日期
    private int proId;
    private String proName;
    private double proPrice;
    private String proAdress;
    private LocalDate prodate;

    public Product(){}
    public Product(int proId, String proName, double proPrice, String proAdress, LocalDate prodate) {
        this.proId = proId;
        this.proName = proName;
        this.proPrice = proPrice;
        this.proAdress = proAdress;
        this.prodate = prodate;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public double getProPrice() {
        return proPrice;
    }

    public void setProPrice(double proPrice) {
        this.proPrice = proPrice;
    }

    public String getProAdress() {
        return proAdress;
    }

    public void setProAdress(String proAdress) {
        this.proAdress = proAdress;
    }

    public LocalDate getProdate() {
        return prodate;
    }

    public void setProdate(LocalDate prodate) {
        this.prodate = prodate;
    }

    @Override
    public String toString() {
        return "Product{" +
                "proId=" + proId +
                ", proName='" + proName + '\'' +
                ", proPrice=" + proPrice +
                ", proAdress='" + proAdress + '\'' +
                ", prodate=" + prodate +
                '}';
    }
}
